package net.sf.jOpinionPoll.dao.jpa;

import java.util.List;

import net.sf.jOpinionPoll.dao.ConteudoDao;
import net.sf.jOpinionPoll.entity.Conteudo;

public class ConteudoDaoJpa extends DaoJpa implements ConteudoDao {

	private DaoJpaHelper<Conteudo> getDaoJpaHelper() {
    	return new DaoJpaHelper<Conteudo>(getEntityManager(), Conteudo.class);
    }
	
	@Override
	public Conteudo findByPk(Object primaryKey) {
		return getDaoJpaHelper().findByPk(primaryKey);
	}

	@Override
	public List<Conteudo> list() {
		return getDaoJpaHelper().list();
	}
}